//
//  XJCommunityHistoryModel.h
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/1.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XJCommunityHistoryButtonModel:NSObject
/**1.按钮的文字*/
@property (nonatomic, copy) NSString *text;
/**2.按钮的状态*/
@property (nonatomic, copy) NSString *code;
@end



@interface XJCommunityHistoryModel : NSObject
/**1.用户名*/
@property (nonatomic, copy) NSString *linkman;
/**2.状态:已经取消、待处理 etc*/
@property (nonatomic, copy) NSString *state_name;
/**3.时间*/
@property (nonatomic, copy) NSString *create_time;

/**4.按钮文字+状态*/
//@property (nonatomic, copy) XJCommunityHistoryButtonModel *button;
/**按钮文字*/
@property (nonatomic, copy) NSString *buttonTitle;
/**按钮状态字段*/
@property (nonatomic, copy) NSString *buttonCode;

/**5.获取详情需要传的id */
@property (nonatomic, copy) NSString *service_id;

@end

/**
 
     {
     "data" : {
     "service_list" : [
     {
     "id" : 25,
     "state" : 4,
     "linkman" : "考虑考虑",
     "phone" : "15837694327",
     "category_id" : 9,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "1",
     "images" : "upload\/service\/2018_03_23\/f730a2ce341546269604684399c1b4ad.jpg,upload\/service\/2018_03_23\/2a91d9f8dbe94c9da2e379f1a89bf702.jpg,upload\/service\/2018_03_23\/325f9d6befac43c594be010b11f47887.jpg,upload\/service\/2018_03_23\/5358cac035be468c8e30dcad5c575a5f.jpeg,upload\/service\/2018_03_23\/b9b84e41fbef481385c651b92e51d8d9.gif",
     "customer_id" : 7,
     "create_time" : 1527757936022,
     "name" : "1",
     "content" : "咯Mook了考虑图空军建军节Mook旅途兔兔咯哦哦OK了11啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了\n"
     },
     {
     "id" : 26,
     "state" : 4,
     "linkman" : "back",
     "phone" : "15837694444",
     "category_id" : 1,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "维修",
     "images" : "",
     "customer_id" : 7,
     "create_time" : 1527834352228,
     "name" : "维修",
     "content" : "啦啦啦"
     },
     {
     "id" : 27,
     "state" : 1,
     "linkman" : "啦啦啦",
     "phone" : "15837695555",
     "category_id" : 9,
     "button" : {
     "text" : "取消申请",
     "code" : "cancel"
     },
     "state_name" : "待处理",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "1",
     "images" : "",
     "customer_id" : 7,
     "create_time" : 1527834459790,
     "name" : "1",
     "content" : "啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了哭咯哦哦哦路 他咯哦哦哦OK了图我哦KTV来咯魔女路兔兔啦咯啦咯啦咯啦咯啦咯啦咯啦咯啦咯了旅途咯摸摸KTV"
     },
     {
     "id" : 28,
     "state" : 4,
     "linkman" : "hhh",
     "phone" : "15837644329",
     "category_id" : 4,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "安排好大啊",
     "images" : "",
     "customer_id" : 7,
     "create_time" : 1527838445872,
     "name" : "安排好大啊",
     "content" : "gghhyw\n"
     },
     {
     "id" : 29,
     "state" : 4,
     "linkman" : "你",
     "phone" : "15873654124",
     "category_id" : 10,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "2",
     "customer_id" : 7,
     "create_time" : 1527838492984,
     "name" : "可口可乐",
     "content" : "？可口可乐在能看到一"
     },
     {
     "id" : 30,
     "state" : 4,
     "linkman" : "在",
     "phone" : "15837694444",
     "category_id" : 1,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "维修",
     "customer_id" : 7,
     "create_time" : 1527841059694,
     "name" : "可口可乐",
     "content" : "可口可乐等行业"
     },
     {
     "id" : 31,
     "state" : 4,
     "linkman" : "在",
     "phone" : "15837694444",
     "category_id" : 1,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "维修",
     "customer_id" : 7,
     "create_time" : 1527841063377,
     "name" : "可口可乐",
     "content" : "可口可乐等行业"
     },
     {
     "id" : 32,
     "state" : 1,
     "linkman" : "在",
     "phone" : "15837694444",
     "category_id" : 1,
     "button" : {
     "text" : "取消申请",
     "code" : "cancel"
     },
     "state_name" : "待处理",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "维修",
     "customer_id" : 7,
     "create_time" : 1527841070644,
     "name" : "可口可乐",
     "content" : "可口可乐等行业"
     },
     {
     "id" : 33,
     "state" : 1,
     "linkman" : "你",
     "phone" : "15837694125",
     "category_id" : 4,
     "button" : {
     "text" : "取消申请",
     "code" : "cancel"
     },
     "state_name" : "待处理",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "安排好大啊",
     "customer_id" : 7,
     "create_time" : 1527841332473,
     "name" : "可口可乐",
     "content" : "可口可乐"
     },
     {
     "id" : 34,
     "state" : 1,
     "linkman" : "你",
     "phone" : "15837694125",
     "category_id" : 4,
     "button" : {
     "text" : "取消申请",
     "code" : "cancel"
     },
     "state_name" : "待处理",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "安排好大啊",
     "customer_id" : 7,
     "create_time" : 1527841350081,
     "name" : "可口可乐",
     "content" : "可口可乐"
     },
     {
     "id" : 35,
     "state" : 4,
     "linkman" : "我",
     "phone" : "15837695874",
     "category_id" : 4,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "安排好大啊",
     "customer_id" : 7,
     "create_time" : 1527841386034,
     "name" : "武汉",
     "content" : "你"
     },
     {
     "id" : 37,
     "state" : 4,
     "linkman" : "这",
     "phone" : "15837695807",
     "category_id" : 1,
     "button" : {
     "text" : "删除",
     "code" : "delete"
     },
     "state_name" : "已取消",
     "community_id" : 8,
     "is_delete" : 0,
     "category_name" : "维修",
     "customer_id" : 7,
     "create_time" : 1527841554486,
     "name" : "可口可乐",
     "content" : "就"
     }
     ]
     },
     "code" : 0
     }
 */
